import Vue from 'vue';
import VueRouter from 'vue-router';


import Login from '../views/Login.vue'
import Home from '../views/Home/Home.vue'
import Model from '../views/model.vue'
import RoomReserve from "../views/Room_Reserve/room_reserve"
import FloorInfo from '../views/BasicInfo/FloorInfo.vue'
import CommodityCategory from '../views/BasicInfo/CommodityCategory.vue'
import CommodityManage from "../views/BasicInfo/CommodityManage";
import RoomType from '../views/BasicInfo/RoomType.vue'
import RoomInfoManagement from '../views/Room_management/RoomInfoManagement.vue'
import UserManage from '../views/System_manage/User_Manage.vue'
import RoomChangeManagement from '../views/Room_change_management/RoomChangeManagement.vue'
import Welcome from '../views/Welcome/Welcome.vue'
const MemberInfoManage = () => import('../views/BasicInfo/MemberInfoManage')
const CheckoutManagement = () => import('../views/checkoutManagement/CheckoutManagement')
const Reserve = () => import('../views/report_management/Reserve')
const InLive = () => import('../views/report_management/InLive')

Vue.use(VueRouter);
const routes = [
  {
    path: "/",
    redirect: "/login"
  },

  {
    path:"/login",
    component:Login
  },
  {
    path: "/home",
    component: Home,
    redirect: "/welcome",
    children: [
      {
        path: "/welcome",
        component: Welcome
      },
      {
      path: "/model",
      component: Model
      },
      {
        path: '/floorInfo',
        component: FloorInfo
      },
      {
        path: "/roomReserve",
        component: RoomReserve
      },
      {
        path: "/commodityCategory",
        component: CommodityCategory
      },
      {
        path:"/commodityManage",
        component:CommodityManage
      },
      {
        path: '/roomType',
        component: RoomType
      },
      {
        path: '/roomInfoManagement',
        component: RoomInfoManagement
      },
      {
        path: '/memberInfo',
        component: MemberInfoManage
      },
      {
        path:'/userManage',
        component:UserManage
      },
      {
        path: '/roomChangeManagement',
        component: RoomChangeManagement
      },
      {
        path:'/checkoutManage',
        component:CheckoutManagement
      },
      {
        path:'/reserve',
        component:Reserve
      },
      {
        path:'/inLive',
        component:InLive
      }
    ]
  },


];

const asyncRoutes = [];
const constantRoutes = [];




const router = new VueRouter({
  routes
});

export default router;
